package com.matrix.kernel.impl.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

import com.matrix.kernel.core.dao.UserDao;

@Service
public class UserServiceImpl implements UserDetailsService {
	
	@Resource
    UserDao userDao;


	@Override
	public UserDetails loadUserByUsername(String username)
			throws UsernameNotFoundException {
		UserDetails user = this.userDao.getUserBy(username);
		return user;
	}
    
    
}
